import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
// 引入全局react-vant UI框架使用
// import * as Vant from 'react-vant';
// 引入react-router
// import * as router from 'react-router-dom';
// 引入cookie
import cookie from 'react-cookies';
// 引用api
// import api from './api/index';

// 全局挂载api
// React.$api = api

// 全局挂载Vant
// React.$vant = Vant;

// 全局挂载Router
// React.$router = router

// 挂载cookies
// React.$cookies = cookie

// 全局获取LoginUser
React.$LoginUser = cookie.load('LoginUser') ? cookie.load('LoginUser') : {}

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // <React.StrictMode>
  <>
    <App />
  </>
  // </React.StrictMode>
);

